package com.example.demo.mapper;

import com.example.demo.model.ArticleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface ArticleMapper {
    //返回的是受影响的行数
    int add(@Param("articleInfo") ArticleInfo articleInfo);
    //得到自增主键的id
    int addGetId(@Param("articleInfo") ArticleInfo articleInfo);
    //通过id删除用户信息
    int deleteById(@Param("id") int id);
    //通过id修改用户的信息
    int updateById(@Param("id") int id,@Param("title") String title);

}